package net.arvin.utils;

import java.util.Calendar;

public class DataUtils {
	public static String getCurrentTime() {
		String currentTime = null;
		Calendar calendar = Calendar.getInstance();
		int year = calendar.get(Calendar.YEAR);
		int month = calendar.get(Calendar.MONTH);
		int day = calendar.get(Calendar.DAY_OF_MONTH);
		int hour = calendar.get(Calendar.HOUR_OF_DAY);
		int minute = calendar.get(Calendar.MINUTE);
		int second = calendar.get(Calendar.SECOND);
		currentTime = year + "-" + month + "-" + day + " " + hour + ":"
				+ minute + ":" + second;
		return currentTime;
	}
}
